package com.shiguiwu.springmybatis.spring.manualdi;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @description: 手动注入
 * @author: stone
 * @date: Created by 2021/3/10 10:01
 * @version: 1.0.0
 * @pakeage: com.shiguiwu.springmybatis.spring.manualdi
 */
public class ManualDITests {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("spring/manual.xml");
        String[] beanDefinitionNames = applicationContext.getBeanDefinitionNames();
        for (String beanDefinitionName : beanDefinitionNames) {
            System.out.println(applicationContext.getBean(beanDefinitionName));

        }
    }
}
